<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes bian {
            0% {
                transform: translate(-100px, 250px) rotate(65deg);

            }

            100% {
                transform: translate(-100px, -80px) rotate(65deg);
            }
        }

        .img {
            overflow: hidden;
            width: 275px;
            height: 185px;
            background: url(./bgi.jpg) no-repeat;
        }

        .se {
            background-color: rgb(58, 153, 58);
            opacity: 0.3;
            width: 600px;
            height: 600px;
            /* transform:translate(-100px,-500px) rotate(65deg) ; */
            transform: translate(-100px, 250px) rotate(65deg);
            /* animation: bian 2s; */
            /* transition: all 2s; */
        }
        .img:hover .se{
            /* transform: translate(-100px, -80px) rotate(65deg); */
            animation: bian 2s;
        }
    </style>
</head>

<body>
    <div class="img">
        <div class="se">

        </div>
    </div>
</body>

</html>